package com.edu.compile.template;


import com.edu.compile.template.ftl.Block;

import java.util.ArrayList;
import java.util.List;

/**
 * 抽象的代码块节点解析
 *
 * @author yanzhao
 * @date 2021/10/26 16:28
 * @since 1.0.0
 */
public abstract class AbstractNodeBlockParse extends AbstractNodeTemplateParse implements Block {

    public AbstractNodeBlockParse(String nodeId, String nodeType, String nodeName, String parentNodeId) {
        super(nodeId, nodeType, nodeName, parentNodeId);
    }

    /**
     * 方法调用
     */
    private List<String> methodCalls = new ArrayList<>();

    public List<String> getMethodCalls() {
        return methodCalls;
    }

    public void setMethodCalls(List<String> methodCalls) {
        this.methodCalls = methodCalls;
    }

    public void addCall(String call) {
        this.methodCalls.add(call);
    }
}
